package com.sky.business.sys.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * ZLM流媒体服务器信息表
 */
@Data
@TableName(value = "d_media_server", autoResultMap = true)
public class MediaServer implements Serializable {
    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 服务器名称
     */
    @TableField(value = "`server_name`")
    private String serverName;

    /**
     * 服务器IP地址
     */
    @TableField(value = "server_ip")
    private String serverIp;

    /**
     * 唯一标识符
     */
    @TableField(value = "media_server_id")
    private String mediaServerId;

    /**
     * 虚拟主机
     */
    @TableField(value = "vhost")
    private String vhost;

    /**
     * HTTP API端口
     */
    @TableField(value = "http_port")
    private Integer httpPort;

    /**
     * HTTPS API端口
     */
    @TableField(value = "ssl_port")
    private Integer sslPort;

    /**
     * api操作密钥
     */
    @TableField(value = "api_secret")
    private String apiSecret;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;
}